package com.derbysoft.synxisadapter.action;

import org.springframework.beans.factory.annotation.Autowired;

public class SystemAction extends BaseAdapterAction {
    @Autowired
    private Runnable userSyncService;

    public String ajaxSyncUser() {
        try {
            userSyncService.run();
            return populateSucceededJsonResult(null);
        } catch (Exception e) {
            return populateFailedJsonResult(e);
        }
    }
}
